//
//  AlbumColCell.m
//  PSYWeiBo
//
//  Created by xiaotian on 16/3/16.
//  Copyright © 2016年 郑亚田. All rights reserved.
//

#import "AlbumColCell.h"

@implementation AlbumColCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllViews];
    }
    return self;
}

- (void)addAllViews {
    self.bgrImg = [UIImageView new];
    [self addSubview:self.bgrImg];
    [self.bgrImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.right.bottom.equalTo(@0);
    }];
    self.bgrImg.image = [UIImage imageNamed:@"addAlbumFive"];
    
    self.coverImg = [UIImageView new];
    [self.bgrImg addSubview:self.coverImg];
    [self.coverImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.bgrImg).with.insets(UIEdgeInsetsMake(8, 8, 8, 8));
    }];
    self.coverImg.image = [UIImage imageNamed:@"custom-menu-photo"];
}


@end
